package com.chengxiaoxiao.service.impl;

import com.chengxiaoxiao.commons.Page;
import com.chengxiaoxiao.dao.PublisherDao;
import com.chengxiaoxiao.dao.impl.PublisherDaoImpl;
import com.chengxiaoxiao.domain.Publisher;
import com.chengxiaoxiao.service.PublisherService;

import java.util.List;

public class PublisherServiceImpl implements PublisherService {
    private PublisherDao dao = new PublisherDaoImpl();

    @Override
    public void add(Publisher publisher) {
        dao.add(publisher);
    }

    @Override
    public void update(Publisher publisher) {
        dao.update(publisher);
    }

    @Override
    public void delete(long id) {
        dao.delete(id);
    }

    @Override
    public List get() {
        return dao.get();
    }

    @Override
    public Publisher getbyId(long id) {
        return dao.getbyId(id);
    }

    @Override
    public Page getListPage(String num) {
        return null;
    }
}
